﻿using System.Runtime.Serialization;
using StockholmsStad.Utilities.Enums;

namespace StockholmsStad.Utilities.Exceptions
{
    [DataContract]
    public class StockholmStadSystemErrorFault
    {
        public StockholmStadSystemErrorFault(SystemErrorCode errorCode, string errorMessage)
        {
            ErrorMessage = errorMessage;
            ErrorCode = errorCode;
        }

        public StockholmStadSystemErrorFault(SystemErrorCode errorCode)
        {
            ErrorCode = errorCode;
        }

        public StockholmStadSystemErrorFault(string errorMessage)
        {
            ErrorMessage = errorMessage;
        }

        [DataMember]
        public SystemErrorCode ErrorCode;

        [DataMember]
        public string ErrorMessage;
    }
}
